package com.xxl.job.executor.service.jobhandler;

import com.xxl.job.core.handler.IJobHandler;
import org.springframework.stereotype.Component;

/**
 * 继承IJobHandler实现任务
 *
 * 这种方式需要手动去将Sample2实例注册到执行器里面，一般用于非
 *
 * @Author iPan
 * @Date 2025/7/8
 */
@Component
public class Sample2 extends IJobHandler {

    @Override
    public void execute() throws Exception {
        System.out.println("xxl-job-executor-sample-2");
    }

}
